package cn.iocoder.yudao.module.picturebook.controller.admin.classhomework.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "绘本系统 - 班级作业信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ClassHomeWorkDataRespVO {
    @Schema(description = "作业ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30434")
    @ExcelProperty("作业ID")
    private Long id;

    @Schema(description = "关联班级", requiredMode = Schema.RequiredMode.REQUIRED, example = "13594")
    @ExcelProperty("关联班级")
    private Long classId;

    @Schema(description = "作业名称（如“07月08日作业”）", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("作业名称（如“07月08日作业”）")
    private String homeworkName;

    // 修正属性名并添加时区配置
    @Schema(description = "作业时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("作业时间")
    private String homeworkDate;

    @Schema(description = "是否完成", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    @ExcelProperty("是否完成")
    private Boolean isFinished;

    @Schema(description = "完成人数比", requiredMode = Schema.RequiredMode.REQUIRED, example = "80%")
    @ExcelProperty("完成人数比")
    private String completeRatio;
}